/*
 * Copyright (c) 2010, Nikolaus Moll
 * All rights reserved.
 */
package net.gradecalculator.plugin.core.srdx.internal;

import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

//@XmlJavaTypeAdapter(ModuleAdapter.class)
@XmlJavaTypeAdapter(value=ModuleAdapter.class,type=IXmlModuleListItem.class)
@XmlSeeAlso({XmlModule.class, XmlIndividualModule.class, XmlSelectableModuleLists.class})
public interface IXmlModuleListItem extends IXmlModuleIdentificator {
	String getName();
}

class ModuleAdapter extends XmlAdapter<Object, IXmlModuleListItem> {

	@Override
	public Object marshal(final IXmlModuleListItem v) throws Exception {
		return v;
	}

	@Override
	public IXmlModuleListItem unmarshal(final Object v) throws Exception {
    	return (IXmlModuleListItem)v;
	}
}